
<?

require_once ("application.list.inc");

global $_GLOBAL_DBH;
global $_OBJECT_IFACE_PANEL;

$indexes = array (
	title=>array (label=>"Title",order=>"DEFAULT",wrapper=>"vmc_icon_workgroup"),
	details=>array (label=>"Details",order=>"DEFAULT",wrapper=>"vmc_icon_detail"),
	access=>array (label=>"Access",order=>"DEFAULT",
			values=>array (
				"public"=>"Public",
				"private"=>"Private",
				"exclusive"=>"Exclusive",
			)),
	cdate=>array (label=>"Create Date",order=>"DEFAULT",wrapper=>"vmc_icon_date"),
);

$object_ctl = "/admin/projects/projects/fs_projects.php?fs_tab=workgroups&project_id={$_REQUEST["project_id"]}&fs_tab_option=fs_workgroups&fs_action=view&";
$link_options = "&fs_action=view&fs_tab=workgroups&project_id={$_REQUEST["project_id"]}";
$list_options = array ();

$_OBJECT_IFACE_LIST = _app_create_list_object (array (
                db_conn=>$_GLOBAL_DBH,
                indexes=>$indexes,
		list_COUNT=>"SELECT COUNT(*) FROM workgroups",
		list_select=>"SELECT workgroups.* FROM workgroups",
                list_id=>"lc_project_workgroups",
                list_options=>$list_options,
                primary_key=>"id",
                primary_relation=>"workgroup_id",
                link_options=>$link_options,
                object_ctl=>$object_ctl
));

$_OBJECT_IFACE_TABBING_PANEL->insert_container ($_OBJECT_IFACE_LIST);

?>
